package vista;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.GroupLayout.Alignment;
import javax.swing.LayoutStyle.ComponentPlacement;
public class JanelaVendas extends JFrame
{
  /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
  private JTextField textField;
  private JTextField textField_1;
  private JLabel label;
  private JTextField textField_2;
  private JLabel label_1;
  private JTextField textField_3;

public JanelaVendas( String title )
  {
      super(title);

      this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

      setUndecorated(true);
      Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
      setBounds(0,0,screenSize.width, screenSize.height);
      
      JButton btnFechar = new JButton("Fechar");
      
      textField = new JTextField();
      textField.setColumns(10);
      textField.setFont(new Font("Courier", Font.BOLD, 45));
      
      textField_1 = new JTextField();
      textField_1.setFont(new Font("Monospaced", Font.BOLD, 45));
      textField_1.setColumns(10);
      
      JLabel lblPrecoUnitario = new JLabel("Pre\u00E7o unit\u00E1rio");
      lblPrecoUnitario.setFont(new Font("Monospaced", Font.BOLD, 18));
      
      label = new JLabel("Quantidade");
      label.setFont(new Font("Monospaced", Font.BOLD, 18));
      
      textField_2 = new JTextField();
      textField_2.setFont(new Font("Monospaced", Font.BOLD, 45));
      textField_2.setColumns(10);
      
      label_1 = new JLabel("Valor");
      label_1.setFont(new Font("Monospaced", Font.BOLD, 18));
      
      textField_3 = new JTextField();
      textField_3.setFont(new Font("Monospaced", Font.BOLD, 45));
      textField_3.setColumns(10);
      GroupLayout groupLayout = new GroupLayout(getContentPane());
      groupLayout.setHorizontalGroup(
      	groupLayout.createParallelGroup(Alignment.TRAILING)
      		.addGroup(groupLayout.createSequentialGroup()
      			.addContainerGap()
      			.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
      				.addComponent(btnFechar)
      				.addComponent(textField, GroupLayout.DEFAULT_SIZE, 1346, Short.MAX_VALUE)
      				.addGroup(Alignment.TRAILING, groupLayout.createParallelGroup(Alignment.LEADING)
      					.addComponent(lblPrecoUnitario)
      					.addComponent(textField_1, GroupLayout.PREFERRED_SIZE, 374, GroupLayout.PREFERRED_SIZE)
      					.addComponent(label, GroupLayout.PREFERRED_SIZE, 154, GroupLayout.PREFERRED_SIZE))
      				.addGroup(Alignment.TRAILING, groupLayout.createParallelGroup(Alignment.LEADING)
      					.addComponent(label_1, GroupLayout.PREFERRED_SIZE, 154, GroupLayout.PREFERRED_SIZE)
      					.addComponent(textField_2, GroupLayout.PREFERRED_SIZE, 374, GroupLayout.PREFERRED_SIZE))
      				.addComponent(textField_3, Alignment.TRAILING, GroupLayout.PREFERRED_SIZE, 374, GroupLayout.PREFERRED_SIZE))
      			.addContainerGap())
      );
      groupLayout.setVerticalGroup(
      	groupLayout.createParallelGroup(Alignment.LEADING)
      		.addGroup(groupLayout.createSequentialGroup()
      			.addContainerGap()
      			.addComponent(btnFechar)
      			.addGap(83)
      			.addComponent(lblPrecoUnitario)
      			.addPreferredGap(ComponentPlacement.UNRELATED)
      			.addComponent(textField_1, GroupLayout.PREFERRED_SIZE, 44, GroupLayout.PREFERRED_SIZE)
      			.addGap(18)
      			.addComponent(label, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE)
      			.addPreferredGap(ComponentPlacement.UNRELATED)
      			.addComponent(textField_2, GroupLayout.PREFERRED_SIZE, 44, GroupLayout.PREFERRED_SIZE)
      			.addGap(18)
      			.addComponent(label_1, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE)
      			.addPreferredGap(ComponentPlacement.UNRELATED)
      			.addComponent(textField_3, GroupLayout.PREFERRED_SIZE, 44, GroupLayout.PREFERRED_SIZE)
      			.addGap(273)
      			.addComponent(textField, GroupLayout.PREFERRED_SIZE, 88, GroupLayout.PREFERRED_SIZE)
      			.addContainerGap(14, Short.MAX_VALUE))
      );
      getContentPane().setLayout(groupLayout);
  }

  public static void main( String[] args )
  {
      JanelaVendas frame = new JanelaVendas("");
      frame.setVisible(true);
  }
}
